package com.ruanjian2001.Service;

import com.ruanjian2001.Dao.OrderDao;
import com.ruanjian2001.entity.Order;
import com.ruanjian2001.entity.User;

import java.util.List;

public class OrderService {

    /**
     * 根据用户信息查询用户订单
     * @param user 查询的用户
     * @return 该用户订单的集合
     */
    public List<Order> findOrderByUser(User user) {
        List<Order> orders = null;
        OrderDao ord = new OrderDao();
            // 查找出订单信息
        orders = ord.findOrderByUser(user);
        return orders;
    }


}
